cmake_minimum_required(VERSION 3.10)

project(dense_embedding_codegen_lookup_function)

include("${CMAKE_CURRENT_LIST_DIR}/../common/CommonTorchOpConfig.cmake")

add_library(dense_embedding_codegen_lookup_function SHARED dense_embedding_codegen_lookup_function.cpp)

target_compile_features(dense_embedding_codegen_lookup_function PRIVATE cxx_std_17)
target_compile_options(dense_embedding_codegen_lookup_function PRIVATE -D_GLIBCXX_USE_CXX11_ABI=${GLIBCXX_ABI})

target_link_libraries(dense_embedding_codegen_lookup_function PUBLIC c10 torch torch_cpu torch_npu c_sec)
